# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-lingua-franca
pkgver=0.4.2
pkgrel=1
pkgdesc="Mycroft's multilingual text parsing and formatting library"
url="https://github.com/MycroftAI/lingua-franca"
arch="noarch"
license="Apache-2.0"
depends="
	py3-dateutil
	python3
	"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/MycroftAI/lingua-franca/archive/refs/tags/release/v$pkgver.tar.gz
	relax-dep-requirements.patch
	"
builddir="$srcdir/lingua-franca-release-v$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
419e48ada44c844daedb58561533091230d1fec95d044f448bc883422be0a94648cc4b91b4501aa9fc4c29da93832ba08f89321c756c9a6d7f5289fe59c8f1bf  py3-lingua-franca-0.4.2.tar.gz
09ccfb7e18c32e8049f9da101a18d0e69918656c9bba1160794bd1196315fd1fdf1b2603212ec52f0f7604e232c5272aa93e04ca5b7ef1ab27016d8626fbcc9f  relax-dep-requirements.patch
"
